﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace BridgeShips {
    public class TerrainMoveDate : UDPDateBase {
        private string m_oldDate = "";
        private float m_riverWidth;
       
        public override void GetDictionaryDate(string date)
        {
            if (m_oldDate != date)
            {
                m_oldDate = date;
                m_riverWidth = float.Parse(SpitReceivedMsgs.SpitMsgs(date)[1]);
                TerrainsMove.Instance.SetWidth(m_riverWidth);
            }
        }
    }
}